function loadACL(){
	var info = window.info;
	for(index in info['permissions']){
		$('permissions-field').value += info['permissions'][index].join(' ');
		$('permissions-field').value += "\n";
	}
}

function saveACL(){
	var info = {permissions:[]};
	var perms = $('permissions-field').value.split("\n");
	for(index in perms){
		var perm = $('permissions-field').options[index].value;
		info['permissions'].append(perm.split(' '));
	}
	
	window.resultDeferred.callback(info);
	window.close();
}

function cancelACL(){
	window.resultDeferred.callback(null);
	window.close();
}